"""
Import packages needed to run scripts
"""
import datetime as dt
import pandas as pd
import os
import time
import numpy as np
import copy
from pandas.tseries.offsets import MonthEnd
import lmfit
from sklearn import linear_model
import statsmodels.api as sm
import matplotlib.dates as mdates
import matplotlib.pyplot as plt


"""
General display settings
"""
pd.options.mode.chained_assignment = None
pd.options.display.float_format = '{:.4f}'.format
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
pd.set_option("display.max_colwidth", 1000)
plt.style.use('seaborn-darkgrid')


"""
Paths
"""
# Project root path
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
# Pseudo data input paths
user_location = os.path.join("***Add Used Path Here***")
data_path = os.path.join(user_location, "RFS_Pseudo_Data")
# Code-generated output paths
out_path = os.path.join(user_location, 'intermediate_outputs')
if not os.path.exists(out_path):
    os.makedirs(out_path)
plot_path = os.path.join(user_location, 'main_results_and_plots')
if not os.path.exists(plot_path):
    os.makedirs(plot_path)


"""
Global Variables
"""
plots_colors = {'AI': 'xkcd:crimson', 'OldTech': 'xkcd:blue', 'DataMgmt': 'xkcd:green', 'Data_value': 'xkcd:mocha'}
percentilesDetail = [0.01, 0.05, 0.10, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8,
                     0.85, 0.90, 0.95, 0.99]
